﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;

namespace SimpleClient
{
    
    class PBlock
    {
        private Point position; //定义位置字段

        public Point Position
        {
            get { return position; }
            set { position = value; }
        }
        public void Display(Graphics g)
        {
            SolidBrush b = new SolidBrush(Color.Blue);
            g.FillRectangle(b, position.X, position.Y, 15, 15);
        }
        public void UnDisplay(Graphics g)
        {
            SolidBrush b = new SolidBrush(Color.Silver);
            g.FillRectangle(b, position.X, position.Y, 15, 15);
        }
    }
}
